From d38f69a5b80e183e9a54e681a93b186c8023658d Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Wed, 17 Jan 2001 11:11:06 +0000 Subject: [PATCH] (directory_files_internal): Convert result from readdir to a unibyte string initially, to avoid possible misinterpretation of some bytes as the internal form of Emacs characters. --- src/dired.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dired.c b/src/dired.c index 04b14f6c4a5..4994241c2cf 100644 --- a/src/dired.c +++ b/src/dired.c @@ -218,7 +218,7 @@ directory_files_internal (directory, full, match, nosort, attrs) struct gcpro gcpro1, gcpro2; len = NAMLEN (dp); - name = finalname = make_string (dp->d_name, len); + name = finalname = make_unibyte_string (dp->d_name, len); GCPRO2 (finalname, name); /* Note: ENCODE_FILE can GC; it should protect its argument, -- 2.30.2